package com.example.consulconsumer.service.impl;

import com.example.consulconsumer.service.IHelloService;
import org.springframework.stereotype.Service;

/**
 * 实现HelloService接口，并注入到Ioc容器中,
 */
@Service
public class HelloServiceImpl implements IHelloService {
    @Override
    public String hiService(String name) {
        return name + ", I am sorry ,error!";
    }
}
